package com.example.code.service;

import com.example.common.ResultMessage;

/**
 * @author kangshuai
 */
public interface CodeService {

    /**
     * 创建 验证码
     *
     * @param email
     * @return
     * @throws Exception
     */
    Boolean createCode(String email) throws Exception;

    /**
     * 验证校验码
     *
     * @param email
     * @param code
     * @return
     * @throws Exception
     */
    ResultMessage<Boolean> verifyCode(String email, String code) throws Exception;
}
